<?php
/*
 * Copyright (c) 2021.  Liuhongbin All rights reserved.
 * @domain http://dkyx.cc
 * @author liuhongbin <514660094@qq.com>
 */

namespace hiduoke\services\formBuilder\element;

use FormBuilder\Driver\CustomComponent;

class ElTabs extends CustomComponent
{

    public function createValidate()
    {
    }

    /**
     * 绑定值，选中选项卡的 name
     * @param string $value
     * @return ElTabs
     */
    public function value($value)
    {
        return $this->props(['value' => $value]);
    }

    public function defaultName($name)
    {
        return $this->value($name);
    }

    //card/border-card
    public function type($type)
    {
        return $this->props(['type' => $type]);
    }


}
